package com.situ.mall.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.situ.mall.pojo.entity.Orders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.situ.mall.pojo.query.OrderQuery;
import com.situ.mall.pojo.vo.OrderVO;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Gao
 * @since 2025-10-15
 */
public interface OrdersMapper extends BaseMapper<Orders> {

    List<OrderVO> selectListByUser(Integer userId);

    IPage<Orders> list(IPage<Orders> page, OrderQuery orderQuery);
}
